﻿<%@ Page Language="C#" ValidateRequest="false"  AutoEventWireup="true" CodeBehind="DYBGS.aspx.cs" Inherits="GPCSC.Web.sjs.DYBGS" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register assembly="NickLee.Web.UI" namespace="NickLee.Web.UI" tagprefix="NickLee" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
       <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
    <link type="text/css" rel="Stylesheet" href="../Css/GridCss.css" />
     <link type="text/css" rel="Stylesheet" href="../Css/selectCss.css" />
     <link href="../Css/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../scripts/jquery-1.6.2.min.js"></script>
   <script type ="text/javascript" src ="../scripts/datepicker/WdatePicker.js"></script>

   <link rel="stylesheet" href="../Scripts/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="../Scripts/kindeditor/plugins/code/prettify.css" />
	<script type="text/javascript" charset="utf-8" src="../Scripts/kindeditor/kindeditor.js"></script>
	<script type="text/javascript" charset="utf-8" src="../Scripts/kindeditor/lang/zh_CN.js"></script>
	<script type="text/javascript" charset="utf-8" src="../Scripts/kindeditor/plugins/code/prettify.js"></script>

<script type="text/javascript" src="../Scripts/validator/jquery.validate.min.js"></script>
<script type="text/javascript" src="../Scripts/validator/messages_cn.js"></script>

<link type="text/css" href="../Scripts/uploadify/uploadify.css" rel="Stylesheet" />
<script type="text/javascript" charset="utf-8"  src="../Scripts/uploadify/swfobject.js"></script>
<script type="text/javascript" charset="utf-8"  src="../Scripts/uploadify/jquery.uploadify.v2.1.0.min.js"></script>

    <style>
    #Griddiv1
{
	width:40%;
	height:20px;
	float:left;
	text-align:left;
	vertical-align:middle;
}
#Griddiv2
{
	float:left;
	height:20px;
	width:50%;
	text-align:right;
	vertical-align:middle;
}
#Griddiv2 a
{
	padding-right:5px;
}
	.text2
	{
	    font-size:14px;
		color:#055586;
		font-family:"宋体";
		font-weight:bold;
	 }
	 
	
	 
</style>
	<script>

	    $(document).ready(

       function () {

           $('#form1').validate({

       });

           $('#fileupload').uploadify({
               'uploader': '../Scripts/uploadify/uploadify.swf',
               'cancelImg': '../Scripts/uploadify/cancel.png',
               'script': '../UPLoadHandler.ashx?newsid=' + $('#MtxtD_tabid').val(),
               'folder': '../uploadfile',
               'queueID': 'fileQueue',
               'multi': true,
               'auto': false,
               'buttonImg': '../Images/fileup.gif',
               'buttonText': '上传附件',
               'onAllComplete': function (event, data) {

                   if (data.errors == 0) {
                       alert("文件上传成功！");
                   }
                   else {
                       alert("有" + data.errors + "个文件上传失败！");
                   }
                   LCallBack.Callback();
               }

           });
       });

	    KindEditor.ready(function (K) {
	        var editor1 = K.create('#MtxtD_dybg', {
	            cssPath: '../plugins/code/prettify.css',
	            uploadJson: '../Scripts/kindeditor/asp.net/upload_json.ashx',
	            fileManagerJson: '../Scripts/kindeditor/asp.net/file_manager_json.ashx',
	            allowFileManager: true,
	            afterCreate: function () {
	                var self = this;
	                K.ctrl(document, 13, function () {
	                    self.sync();
	                    K('form[name=example]')[0].submit();
	                });
	                K.ctrl(self.edit.doc, 13, function () {
	                    self.sync();
	                    K('form[name=example]')[0].submit();
	                });
	            }
	        });
	        prettyPrint();
	    });

	    function LCallBack_onCallbackError() {

	        alert("callback异常！");

	    }
	    function title_onclick() {

	    }
	    function showtable() {
//	        if (confirm("是否需要继续填写？")) {

//	        }
//	        else {
//	            window.close();
	        //	        }
	        window.parent.Lock_Check();
	    }

	    function tj() {
	        if (confirm("您确认提交?")) {
	            return true;
	        }
	        else {
	            return false;
	        }
	    }

    </script>
       <style>
            a
            {
                text-decoration:none;
                padding-right:5px;
                cursor:pointer;
                font:  14px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
                color: #0161a1; 
                
                }
                a:hover 
                {
                    color:Red;
                    
                    }
          </style>
</head>
<body>
    <form id="form1" runat="server" onsubmit=" return tj();">

    <div >
    <!--导航-->
   <%--  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="29" background="../images/1.gif"><table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="300" class="tittle">当前位置：添加民情日记界面</td>
      </tr>
    </table></td>
    <td align="right" background="../images/1.gif" style="padding-right:20px;">
    <a href="#" onclick="window.close()"  class="returna">
        返回    
    </a>
    </td>
  </tr>
</table>--%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
                <td style="background-color: #73A2d6; color: #fff; padding-left: 4px; padding-top: 2px;
                    font-weight: bold; font-size: 14px;" height="27" valign="middle">
                   请填写调研报告：
                </td>
                                <td style="background-color: #73A2d6; color: #fff; padding-left: 4px; padding-top: 2px;
                    font-weight: bold; font-size: 14px;" height="27" valign="middle"  align="right">
                  <a onclick="showtable()"> 关闭</a>
                </td>
</tr>

</table>

<div id="grid" class="grid" style=" margin:20px;"   >
    <table   >

        
                       <tr>
                       
        <td style=" width:100px;">
       <%-- <input type="text" id="MtxtD_hdid" runat="server" style=" display:none" />--%>
        <input type="text" id="MtxtD_lgid" runat="server" style=" display:none" />
         <input type="text" id="MtxtD_tabid" runat="server" style=" display:none" />
         <input type="text" id="MtxtD_lgname" runat ="server" style=" display:none" />
        标题：
        </td>

        <td style=" text-align:left; width:500px;">
        <input type ="text" id="MtxtD_dytitle" runat="server"  class="required" />
        </td>
        </tr>

        <tr>
                       
        <td style=" width:100px;">
       
         <%--  <input type="text" id="MtxtD_tabid" runat="server" style=" display:none" />--%>
        调研时间：
        </td>

        <td style=" text-align:left; width:500px;">
        <input type ="text" id="MtxtD_dyDate" runat="server"  class="required" />
           <img  style="margin-bottom:0px;"  src="../Images/calendar.gif"  onclick="WdatePicker({el:'MtxtD_dyDate'})"/>
        </td>
        </tr>
        <tr >
        <td>
        请填调研报告：
        
        </td>
        <td>
         <textarea id="MtxtD_dybg" runat="server" cols="100" rows="8" style=" width:500px;visibility:hidden; height:200px;"  ></textarea>
        </td>
        </tr>
       <tr style=" display:none">
        <td >
        <div id="fileQueue">
        
        </div>
        <input id="fileupload" type="file" name="fileupload" />
        <input type="text"  runat="server" id="newfileid" style=" display:none" value="" />
        <input type="text"  runat="server" id="newfileids" style=" display:none" value=""  />
        <p>
      <a href="javascript:$('#fileupload').uploadifyUpload()">上传</a>| 
      <a href="javascript:$('#fileupload').uploadifyClearQueue()">取消上传</a>
    </p>

        </td>
        <td>
            <nicklee:CallBack runat="server" ID="LCallBack" OnCallback="LCallBack_Callback" PostState="True"
            Width="100%" Height="100%" 
            LoadingPanelFadeDuration="800" LoadingPanelFadeMaximumOpacity="80">
            <Content>
                <asp:Panel ID="Panel1" runat="server">
                <div id="Div1" class="grid" >
                    <asp:Repeater ID="Repeater1" runat="server">
                    <HeaderTemplate>
                    
                        <table width="100%" >
                                <tr height="26px" >
<%--                                <td  width="13%" group="firhe">
                               请选择首图片
                               
                                </td>--%>
                                <td  wiidth="45%" >
                                附件名称
                                </td>
                               
                                <td colspan="2" width="37%">
                                操作
                                </td>
                                </tr>
                    </HeaderTemplate>
                    
                    <ItemTemplate>
                    <tr>
<%--                        <td group="firhe">
                          <%# DataBinder.Eval(Container.DataItem, "tdhead")%>
                        </td>--%>
                        <td>
                        <%# DataBinder.Eval(Container.DataItem, "YfileName")%>
                        </td>
                        
                        <td>

                        [查看]
                        </td>

                        <td>

                        [删除]
                        </td>
                        </tr>
                    
                    </ItemTemplate>
                    <FooterTemplate>
                    <!--分页-->
                        <tr>
                        <td colspan="4"  height="20px" style="background-color:#F9FDFE">
                        <div runat="server" id="pageInfo"></div>	

                        </td>
                        </tr>

                        </table>
                    
                    </FooterTemplate>



</asp:Repeater>
</div>
                </asp:Panel>
            </Content>
            <ClientEvents>
         <%-- <CallbackComplete EventHandler="LCallBack_onCallbackComplete" />--%>
               <%-- <CallbackError EventHandler="LCallBack_onCallbackError" />--%>
            </ClientEvents>
            <LoadingPanelClientTemplate>
                <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0" border="0"
                    bgcolor="#e0e0e0">
                    <tr style="width: 100%; height: 100%;">
                        <td style="width: 100%; height: 100%; vertical-align: middle; text-align: center;">
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        数据载入中...&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        <img alt="" src="../images/GreenBar.gif" border="0" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
           </LoadingPanelClientTemplate>
         </nicklee:CallBack>
        </td>
        </tr>
        <tr>
        
        <td  colspan="2" align ="left">

            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="保存" CssClass="buttonCss" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button2" runat="server"  Text="提交" Visible="false" CssClass="buttonCss" 
                onclick="Button2_Click" />
        </td>
        </tr>
        

</table>
</div>
    </div>
    </form>
</body>
</html>